﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PurchasePlan.ascx.cs" Inherits="UserControl_PurchasePlan" %>
<asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged"
    RepeatDirection="Horizontal">
    <asp:ListItem Selected="True" Value="0">添加采购项</asp:ListItem>
    <asp:ListItem Value="1">导入采购计划</asp:ListItem>
</asp:RadioButtonList>
<hr />
<br />
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
    <asp:View ID="View1" runat="server">
        <table>
            <tr>
                <td style="width: 348px" valign="top">
                    <table style="width: 350px">
                        <tr>
                            <td style="width: 451px">
                                库存：</td>
                        </tr>
                        <tr>
                            <td style="width: 451px; height: 22px">
                                <asp:CheckBox ID="cbIsLowerThanMin" runat="server" Text="小于库存下限的图书" /></td>
                        </tr>
                        <tr>
                            <td style="width: 451px">
                                <asp:CheckBox ID="cbClassA" runat="server" Text="A类" />
                                <asp:CheckBox ID="cbClassB" runat="server" Text="B类" />
                                <asp:CheckBox ID="cbClassC" runat="server" Text="C类" /></td>
                        </tr>
                        <tr>
                            <td style="width: 451px">
                                库存量介于<asp:TextBox ID="txtMin" runat="server" Width="30px"></asp:TextBox>
                                与
                                <asp:TextBox ID="txtMax" runat="server" Width="30px"></asp:TextBox>之间</td>
                        </tr>
                    </table>
                </td>
                <td align="center" valign="top">
                    <table>
                        <tr>
                            <td style="width: 350px">
                                销量：</td>
                        </tr>
                        <tr>
                            <td style="width: 350px">
                                上月销量大于<asp:TextBox ID="LastMonth" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="width: 350px; height: 26px">
                                本月预测销量相比上月销量增长<asp:TextBox ID="Growth" runat="server" Width="49px"></asp:TextBox>%以上</td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="width: 348px">
                    <table>
                        <tr>
                            <td style="width: 449px">
                                订购量
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 449px">
                                <asp:CheckBox ID="cbAmout" runat="server" Checked="True" Text="以(最大库存量—现有库存)作为订购量" /></td>
                        </tr>
                        <tr>
                            <td style="width: 449px; height: 26px">
                                <asp:CheckBox ID="CheckBox2" runat="server" />过滤订购量小于<asp:TextBox ID="TextBox3" runat="server"
                                    Width="30px"></asp:TextBox>的记录</td>
                        </tr>
                    </table>
                </td>
                <td align="center">
                    <asp:Button ID="Button1" runat="server" Height="34px" OnClick="Button1_Click" Text="查看"
                        Width="100px" /></td>
            </tr>
        </table>
        <br />
        <asp:HiddenField ID="HiddenField1" runat="server" />
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="LightGoldenrodYellow"
                    BorderColor="Tan" BorderWidth="1px" CellPadding="2" DataSourceID="ObjectDataSource1"
                    ForeColor="Black" GridLines="None" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
                    <Columns>
                        <asp:BoundField DataField="Isbn" HeaderText="ISBN" SortExpression="Isbn" />
                        <asp:BoundField DataField="BookName" HeaderText="书名" SortExpression="BookName" />
                        <asp:BoundField DataField="Amount" HeaderText="库存" SortExpression="Amount" />
                        <asp:BoundField DataField="MinStock" HeaderText="库存下限" SortExpression="MinStock" />
                        <asp:BoundField DataField="MaxStock" HeaderText="库存上限" SortExpression="MaxStock" />
                        <asp:BoundField DataField="LastMonthSale" HeaderText="上月销量" SortExpression="LastMonthSale" />
                        <asp:BoundField DataField="Forecast1" HeaderText="第一月预测" SortExpression="Forecast1" />
                        <asp:BoundField DataField="Forecast2" HeaderText="第二月预测" SortExpression="Forecast2" />
                        <asp:BoundField DataField="Forecast3" HeaderText="第三月预测" SortExpression="Forecast3" />
                        <asp:BoundField DataField="Classification" HeaderText="分类" SortExpression="Classification" />
                        <asp:ButtonField ButtonType="Button" CommandName="Select" Text="添加" />
                    </Columns>
                    <FooterStyle BackColor="Tan" />
                    <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                    <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="Tan" Font-Bold="True" />
                    <AlternatingRowStyle BackColor="PaleGoldenrod" />
                </asp:GridView>
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
                    SelectMethod="Load" TypeName="BookShop.OrderPrediction4StoreCollection">
                </asp:ObjectDataSource>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
                <asp:GridView ID="GridView2" runat="server" BackColor="LightGoldenrodYellow" BorderColor="Tan"
                    BorderWidth="1px" CellPadding="2" ForeColor="Black" GridLines="None">
                    <FooterStyle BackColor="Tan" />
                    <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                    <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="Tan" Font-Bold="True" />
                    <AlternatingRowStyle BackColor="PaleGoldenrod" />
                </asp:GridView>
                <asp:ObjectDataSource ID="ObjectDataSource2" runat="server"></asp:ObjectDataSource>
            </ContentTemplate>
        </asp:UpdatePanel>
        <br />
        
    </asp:View>
    <asp:View ID="View2" runat="server">
    </asp:View>
</asp:MultiView>